package cerebrum.common;

import ui.util.CommonUtil;

import java.io.File;

/**
 * 　@description: 通用常量类
 * 　@author secret
 * 　@date 2020/12/31 19:28
 */
public class CommonConst {
    private CommonConst() {

    }

    /**
     * 古诗文网地址
     */
    public static final String VERSE_URL = "https://so.gushiwen.cn/mingjus/default.aspx?tstr=";
    /**
     * 默认诗词类别
     */
    public static final String[] VERSE_TYPE_CURRENCY = {"感恩", "读书", "爱国", "思念", "爱情", "励志", "友情", "醒世恒言"};
    /**
     * 运行配置文件地址
     */
    public static final String PROPERTY_CONFIG_PATH = "config" + File.separator + "config.properties";
    /**
     * 诗词文件地址
     */
    public static final String PROPERTY_VERSE_PATH = "config" + File.separator + "verse.properties";

    /**
     * 开机启动目录
     */
    public static final String WINSTARTUPPATH = System.getProperty("user.home") +
            "\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Startup\\";

    /**
     * 打包exe程序名
     */
    public static final String EXENAME = "IceoLogy";

    /**
     * 创建WINDOWS系统开机自启脚本相对路径
     */
    public static final String WINSTARTUPSCRIPT = "/script/myshortcut.vbs";

    /**
     * 屏幕高
     */
    public static final Double SYSTEMHEIGHT = CommonUtil.getSystemHeight();
    /**
     * 屏幕宽
     */
    public static final Double SYSTEMWIDTH = CommonUtil.getSystemWidth();
}
